package com.cjg.xiancheng;

public class threadMore {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getName()+"的"+Thread.currentThread().getPriority());
        more more = new more();
        Thread thread = new Thread(more);  Thread thread1 = new Thread(more);  Thread thread2 = new Thread(more);
        thread.setPriority(Thread.MAX_PRIORITY);
        thread1.setPriority(4);
        thread2.setPriority(Thread.MIN_PRIORITY);
        thread.start(); thread1.start(); thread2.start();
    }
}
class more implements Runnable{
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName()+"的"+Thread.currentThread().getPriority());
    }
}